import request from '@/utils/request'
// 获取点位信息
export function getpointLocation(params) {
  return request({
    url: `/api/vm-service/node/search`,
    method: 'get',
    params
  })
}
// 获取区域列表 /api/vm-service/region/search
export function getquyunList(params) {
  return request({
    url: `/api/vm-service/region/search`,
    method: 'get',
    params
  })
}
// 新增区域 /api/vm-service/region
export function POSTquyunList(data) {
  return request({
    url: `/api/vm-service/region`,
    method: 'POST',
    data
  })
}
// 修改区域 /api/vm-service/region/:id
export function PUTquyunList(data, id) {
  return request({
    url: `/api/vm-service/region/${id}`,
    method: 'PUT',
    data
  })
}
// 删除区域 /api/vm-service/region/:id
export function DELETEquyunList(id) {
  return request({
    url: `/api/vm-service/region/${id}`,
    method: 'DELETE'
  })
}
// 获取商圈列表
export function getshangquanList(params) {
  return request({
    url: `/api/vm-service/businessType`,
    method: 'get',
    params
  })
}
// 合作商列表 /api/user-service/partner/search
export function gethezuoshang(params) {
  return request({
    url: `/api/user-service/partner/search`,
    method: 'get',
    params
  })
}
// 新增点位 /api/vm-service/node
export function POSTdianwei(data) {
  return request({
    url: `/api/vm-service/node`,
    method: 'POST',
    data
  })
}
// 新增点位 /api/vm-service/node
export function PUTdianwei(data, id) {
  return request({
    url: `/api/vm-service/node/${id}`,
    method: 'PUT',
    data
  })
}
// 删除点位 /api/vm-service/node
export function DELETEdianwei(id) {
  return request({
    url: `/api/vm-service/node/${id}`,
    method: 'DELETE'
  })
}
//  获取点位详情 /api/vm-service/node/vmList/:id
export function getdianweixq(id) {
  return request({
    url: `/api/vm-service/node/vmList/${id}`,
    method: 'get'
  })
}
// 新增合作商 /api/user-service/partner
export function POSThezuoshang(data) {
  return request({
    url: `/api/user-service/partner`,
    method: 'POST',
    data
  })
}
// 修改合作商 /api/user-service/partner/:id
export function PUThezuoshang(data, id) {
  return request({
    url: `/api/user-service/partner/${id}`,
    method: 'PUT',
    data
  })
}
// 重置合作商密码  /api/user-service/partner/resetPwd/:id
export function PUThzspassword(id) {
  return request({
    url: `/api/user-service/partner/resetPwd/${id}`,
    method: 'PUT'
  })
}
// 删除合作商 /api/user-service/partner/:id
export function DELETEhzs(id) {
  return request({
    url: `/api/user-service/partner/${id}`,
    method: 'DELETE'
  })
}
